<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
        
        <ul class="nav nav-tabs nav-stacked">
             <li class="active"><a href="{url("?module=yellowpage&file=job")}">企业招聘</a></li>
              <li><a href="{url("?module=yellowpage&file=job&action=list")}">企业招聘</a></li>
              <li><a href="{url("?module=yellowpage&file=job&action=applylist")}">个人求职</a></li>
            </ul>
             
                
    </div>
    
    <div class="main">
    
    	<ul class="nav nav-tabs">
        <li class="active"><a href="#">推荐招聘企业</a></li>
        </ul>
        
        <div class="mod">
        	
            <ul class="body users">
                {get sql="SELECT c.companyname, c.userid, j.title, j.id FROM table_member_company c LEFT JOIN table_yellowpage_job j ON j.userid = c.userid ORDER BY rand()" rows="18"}
                	<li {if $n%9==1} class="clear" {/if}>
                     <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">
                     <img src="{php echo $r[logo] ? thumb($r[logo],72,'') : thumb('misc/nopic.gif',72,'')}" 
                     alt="{$r[companyname]}"  target="_blank" width="40" height="40"/></a>
                     <br/><a href="{url("?module=yellowpage&userid=$r[userid]")}">{str_cut($r[companyname],15,'')}</a><br/>&nbsp;({rand(100,500)})
                    </li>
                {/get}
            </ul>
            
        	
        </div>
        
        
        <ul class="nav nav-tabs">
        <li class="active"><a href="{url("?module=yellowpage&file=job&action=list")}">最新招聘职位</a></li>
        </ul>
         
            
        
        <div class="mod">
            <ul class="body list">
                {get sql="SELECT c.companyname, c.userid, c.url as curl, j.title, j.id, j.updatetime, j.url FROM table_yellowpage_job j LEFT JOIN table_member_company c ON j.userid = c.userid WHERE j.status = '99' ORDER BY j.updatetime DESC" rows="12"}
                <li><a href="{url("?module=yellowpage&userid=$r[userid]")}">{$r['companyname']}</a>
                <a href="{url($r[url])}">{$r['title']}</a>
                [ {date("Y-m-d",$r['updatetime'])} ]
                
                </li>
                {/get}
            </ul>  
        </div>
        
        
        
        <ul class="nav nav-tabs">
        <li class="active"><a href="{url("?module=yellowpage&file=job&action=applylist")}">最新求职简历</a></li>
        </ul>
         
            
            
        <div class="mod">
            <ul class="body">
                    {get sql="SELECT a.truename, t.name, a.userid, t.typeid FROM table_yellowpage_apply a LEFT JOIN table_type t ON a.station = t.typeid WHERE a.status = '3' ORDER BY a.addtime DESC" rows="12"}
                <li><a href="{$inputtime}{$r['typeid']}{$genre}" class="gray"><samp class="{$r['style']}">{$r['name']}</samp></a><span><a href="yp/apply.php?applyid={$r['userid']}">{$r['truename']}</a></span></li>
                {/get}
            </ul>  
        </div>
        
        
     </div>
  </div>   
        

<!--  <div id="left">
    <div class="box_t">
      <p class="job_tag"><a href="javascript:void(0)" onClick="javascript:job.show('sjob','speople');" id="sjobl">找工作</a><a  href="javascript:void(0)" onClick="javascript:job.show('speople','sjob');" id="speoplel" class="s1">找人才</a></p>
    </div>
    
    <div class="box_b"></div>
    <div class="bk_10"></div>
    <div class="box_t">
      <h3>职位分类列表</h3>
    </div>
    <div class="box_c">
    <table width="222" border="0" cellspacing="0" cellpadding="0" class="table_list">
	{get sql="SELECT count(*) AS number,j.station,t.name FROM table_yellowpage_job j,table_type t WHERE t.typeid = j.station AND j.status = '99' GROUP BY station ORDER BY t.listorder DESC"}
		<tr>
		<td><a href="{$r['station']}">{$r['name']}</a>（{$r['number']}）</td>
		</tr>
	{/get}  
	</table>
    </div>-->




<script type="text/javascript">
var job = new Object();
job.show = function(id1,id2)
{
	$("#"+id1).show();
	$("#"+id2).hide();
	$("#"+id1+"l").removeClass("s1");
	$("#"+id2+"l").addClass("s1");
	if(id1=="speople")$("#stype").val(1);
	else $("#stype").val(0);
}

job.clearTxt = function(obj,bool)
{
	if(obj.value == '公司或者职位关键字' && bool)obj.value = '';
	if(obj.value == '' && !bool)obj.value = '公司或者职位关键字';
}
</script>
{template 'footer.html'}